﻿#pragma once
#include "StringEditEntry.h"

class SizePolicyEditEntry : public StringEditEntry {
    Q_OBJECT
    struct SizePolicyEntryPrivate;
    QScopedPointer<SizePolicyEntryPrivate> p;
public:
    explicit SizePolicyEditEntry(QWidget *parent = nullptr);
    ~SizePolicyEditEntry();
    void setValue(const QSizePolicy &policy);
    QSizePolicy value() const;
signals:
    void valueChanged(const QSizePolicy &value);
private slots:
    void onChildEntryValueChanged();
private:
    void initUi();
    void retranslateUi();
};
